import axios from 'axios'
import Cookies from 'js-cookie'
export default {
  uploadFileRequest(url, params){
    return axios({
	  baseURL: window.SITE_CONFIG['apiURL'],
      method: 'post',
      url: `${url}`,
      data: params,
      headers: {
        'Content-Type': 'multipart/form-data',
		'token':Cookies.get('token')
      }
    });
  },
  updateFileRequest(url, params){
    return axios({
  	  baseURL: window.SITE_CONFIG['apiURL'],
      method: 'put',
      url: `${url}`,
      data: params,
      headers: {
        'Content-Type': 'multipart/form-data',
  		'token':Cookies.get('token')
      }
    });
  }
}
